package br.unifor.ow2.onaga.cloud;

import java.lang.reflect.InvocationTargetException;
import java.util.List;

import br.unifor.ow2.onaga.cloud.testsuite.OnagaTestCase;

public class CloudScenario {
	private List<String> users;
	private List<CloudInstance> instances;
	private OnagaTestCase testCase;
	
	public CloudScenario (List<String> users, List<CloudInstance> instances, Class testClass) throws IllegalArgumentException, SecurityException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException{
		this.users = users;
		this.instances = instances;
		
		
		testCase = (OnagaTestCase) testClass.getConstructor(List.class, List.class).newInstance(users, instances);
	}
	
	public void begin() throws Exception{
		
		testCase.testRun();
	}
	
	public void setUp(){
		
	}
	
	public void tearDown(){
		
	}
}
